<?php include("QuestionFactory.php");
      include("SolutionTemplate.php");




   $questionStr = "%a + %b";
   $answerStr = "%c";
   $dataDef = "a = random(-5, 5);
   	       b = random(-5, 5);
	       c = %a + %b;";
   $solutionFn = "equals";
   $solution = "makeArray(%c);";
  

 	$template = new QuestionFactory();
   $template->build($dataDef,
		    $questionStr, 
		    $answerStr, 
		    $solution, 
		    $solutionFn, 
		    0);

   $soln = $template->getTestQuestion();
   print $soln->question."<br>";
   //print $soln->answer."<br>";
   //print $soln->solve();
   print "<br><br>";


?>